<?php
/**
{
    "imageFileId": "INT //图片ID",
    "uploadImg": "VARCHAR //图片@image",
    "uid": "INT //用户ID@foreign::tbl_user",
    "imagePos": "VARCHAR //图片位置",
    "ip": "VARCHAR //上传IP",
    "created": "DATETIME //创建日期"
}
 */

class ImageFile extends Base
{
    
	public $imageFileId= '';//图片ID
	public $uploadImg= NULL;//图片@image
	public $uid= NULL;//用户ID@foreign::tbl_user
	public $imagePos= NULL;//图片位置
	public $ip= '';//上传IP
	public $created= 'CURRENT_TIMESTAMP';//创建日期

    public $isDbData = false;

    public function __construct()
    {
        parent::__construct();
    }


    public function __get($name) {
        return $this->$name;
    }

    public function __set($name, $value) {
        if(!$this->isDbData){
            if(!in_array($name,$this->loadedFiled))$this->loadedFiled[] = $name;
        }

        $this->$name=$value;
        $this->arr[$name] = $value;
    }

    public  function table()
    {
        return 'tbl_image_file';
    }
    
    public  function key(){
        return 'imageFileId';
    }


    
    public static  function hideField()
    {
        return [];
    }
            
    public static  function skipField()
    {
        return [];
    }
            
    public static  function noViewField()
    {
        return [];
    }
            
    public static  function jsonField()
    {
        return [];
    }
            
    public static  function noLoadField()
    {
        return [];
    }
            
    public static  function deleteField()
    {
        return [];
    }
            
    public function className()
    {
        return 'ImageFile';
    }
    
    public  function field()
    {
        return array (  'imageFileId' =>   array (    0 => 'INT',    1 => 11,    2 => '图片ID',  ),  'uploadImg' =>   array (    0 => 'VARCHAR',    1 => 100,    2 => '图片@image',  ),  'uid' =>   array (    0 => 'INT',    1 => 11,    2 => '用户ID@foreign::tbl_user',  ),  'imagePos' =>   array (    0 => 'VARCHAR',    1 => 30,    2 => '图片位置',  ),  'ip' =>   array (    0 => 'VARCHAR',    1 => 15,    2 => '上传IP',  ),  'created' =>   array (    0 => 'DATETIME',    1 => 0,    2 => '创建日期',  ),);
    }


}